package com.lovegu.enumandannotation;

/**
 * @author 老顾
 * @title: AnnotationTest
 * @projectName java-restudy
 * @email: 1437594522@qq.com
 * @date 2022/9/24 8:54
 */
public class AnnotationTest {
    public static void main(String[] args) {
        @SuppressWarnings("unused")
        int a = 10;
    }
    @Deprecated
    public void print(){
        System.out.println("过时的方法");
    }
    @Override
    public String toString() {
        return "重写的toString方法()";
    }
}
